import { Router } from 'express';
import { authRoutes } from './auth';
import { userRoutes } from './user';
import { messageRoutes } from './message';
import { notesRoutes } from './notes';
import { albumsRoutes } from './albums';

const router = Router();

// 路由配置
router.use('/auth', authRoutes);
router.use('/users', userRoutes);
router.use('/messages', messageRoutes);
router.use('/notes', notesRoutes);
router.use('/albums', albumsRoutes);

// 健康检查
router.get('/health', (req, res) => {
  res.json({
    success: true,
    message: 'API is running',
    timestamp: new Date().toISOString()
  });
});

export default router;